import com.vesoft.nebula.client.graph.NebulaPoolConfig;
import com.vesoft.nebula.client.graph.data.HostAddress;
import com.vesoft.nebula.client.graph.net.NebulaPool;
import com.vesoft.nebula.client.graph.net.Session;

import java.net.UnknownHostException;
import java.util.Arrays;
import java.util.List;

/**
 * @Author: Aerospace
 * @Date: 2023/12/28 11:08
 * @Description: Dream begins
 */
public class NebulaTest {
    public static void main(String[] args) throws Exception {
        NebulaPoolConfig nebulaPoolConfig = new NebulaPoolConfig();
        nebulaPoolConfig.setMaxConnSize(10);
        List<HostAddress> addresses = Arrays.asList(new HostAddress("127.0.0.1",9669),new HostAddress("127.0.0.1",9670));
        NebulaPool pool = new NebulaPool();
        pool.init(addresses, nebulaPoolConfig);
        Session session = pool.getSession("root","nebula",false);
    }
}
